
:root {
    --color-blue: rgb(0, 183, 255);
}

html,
body {
    width: 100%;
    height: 100%;
}

body {
    margin: 0;
    background-color: #fff;
    background-image: url("../images/background.jpg");
}

p {
    word-break: break-word;
}

ol,
ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
li {
    box-sizing: border-box;
    padding: 5px;
}

a {
    color: #333;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}
a:hover {
    cursor: pointer;
}
a:hover,
a > *:hover {
    color: var(--color-blue);
}

img {
    user-select: none;
    -webkit-user-drag: none;
}

dialog {
    position: fixed;
    width: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
}
dialog > div {
    display: flex;
    flex-direction: column;
}

table {
    border: 1px solid gray;
    border-collapse: collapse;
}
th,
tr,
td {
    box-sizing: border-box;
    padding: 1em;
    border: 1px solid gray;
    text-align: center;
}

input {
    transition: all 0.2s;
    box-sizing: border-box;
    padding: 0.25em 0.5em;

    box-shadow: none;
    border: 0.5px solid #ddd;
    outline: 0.5px solid #ddd;
    border-radius: 2px;
}
input:focus {
    border-color: var(--color-blue);
    outline-color: var(--color-blue);
}
[required] + span::after {
    content: "*";
    color: red;
}
input:valid + span + span::after {
    content: " √ ";
    color: green;
}
input:invalid + span + span::after {
    content: " X ";
    color: red;
}

textarea {
    resize: none;
    transition: all 0.2s;
    box-sizing: border-box;
    padding: 0.5em;
}
textarea:focus {
    border-color: var(--color-blue);
    outline-color: var(--color-blue);
}

.nav {
    display: flex;
    flex-direction: row;
}

.button {
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    border-radius: 2px;
    background-color: #eee;

    box-sizing: border-box;
    padding: 0.5em 1em;
}
.button:hover {
    cursor: pointer;
}
.button:active {
    filter: brightness(95%);
    transition: 0.1s ease-in;
    transform: scale(0.95);
}
.button:focus {
    border: 1px;
}
.button.primary {
    color: white;
    background-color: #0095FF;
}
.button.danger {
    color: white;
    background-color: red;
}
.button.danger:active {
    filter: brightness(80%);
}
.button.success {
    color: white;
    background-color: green;
}

.card {
    box-sizing: border-box;
    border: 1px solid #eee;
    border-radius: 5px;

    --background-color: white;
    background-color: var(--background-color);

    transition: all 0.25s;
}
.card.noborder {
    border: none;
}
.card.shadow:hover {
    box-shadow: 0 0 14px 4px rgba(204, 204, 204, .21);
}
.card-header {
    width: 100%;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 1em;
}
.form  > * {
    width: fit-content;
    margin: 0 2em;
}

